<?php


class ProfileMenuWidget extends CWidget {
	
	public $active = 'account';
	
	public $type = 'default';		//top or default
	
	public $menus = array(
		'dibzees' => array(
			'label' => 'My Account',
			'url' => 'dibzees/bhistory',
			'items' => array(
				'Bidding History' 		=> 'dibzees/bhistory',
				'Watchlist' 			=> 'dibzees/wlist',
				'Won Auctions' 			=> 'dibzees/wauctions',
				'Bid Purchase History'	=> 'dibzees/phistory',
				'Order History' 		=> 'dibzees/ohistory',
				'Auction Limits' 		=> 'dibzees/alimits',
			)
		),
		'account' => array(
			'label' => 'My Dibzees',
			'url' => 'account',
			'items' => array(
				'My Information' 	=> 'account/myinfo',
				'Change Password' 	=> 'account/cpassword',
				'My Avatar' 		=> 'account/avatar',
				//'Refer a Friend' 	=> 'account/friend',
				//'Notifications' 	=> 'account/notifications',
			)
		),
	);	
	
	public function run(){
		$this->render($this->type, array(
			'controller' 	=> $this->owner,
			'menus' 		=> $this->menus,
			'active' 		=> $this->active,	
		));
	}
	
}

